<div class="zs-body" data-ng-init="formInitMessageAll();setConHei();setTab('cms_messageboard', 'sy');">
    <div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >内容管理</a>
			<i class="right-arr"></i>
			<a >留言板管理</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" 
				ng-click="addRow('cms_messageboard') && openWindow('edit');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('cms_messageboard', cms_messageboard.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('cms_messageboard')"/>
		</div>
	</div>
	
	<div class="zs-content" style="position:unset">
        <!--查询栏-->
        <div ag-include src="'module/cms/message/messageBoardSearch.html'" show="true"></div>
  
        <div class="zs-itab" style="margin:0px 10px">
			<div class="zs-itab-title">
				<ul class="idTabs">
					<li><a ng-click="setTab('cms_messageboard', 'sy');"  class="{{tabs['cms_messageboard'].tabClass['sy']}}">
						所有（<label ng-bind="cms_messageboard.rowsCount"></label>）</a></li>
					<li><a ng-click="setTab('cms_messageboard', 'wsh');"  class="{{tabs['cms_messageboard'].tabClass['wsh']}}">
						未审核（<label ng-bind="cms_messageboard_wsh.rowsCount"></label>）</a></li>
					<li><a ng-click="setTab('cms_messageboard', 'shtg');"  class="{{tabs['cms_messageboard'].tabClass['shtg']}}">
						审核通过（<label ng-bind="cms_messageboard_shtg.rowsCount"></label>）</a></li>	
					<li><a ng-click="setTab('cms_messageboard', 'shwtg');"  class="{{tabs['cms_messageboard'].tabClass['shwtg']}}">
						审核未通过（<label ng-bind="cms_messageboard_shwtg.rowsCount"></label>）</a></li>	
					<li><a ng-click="setTab('cms_messageboard', 'dhf');"  class="{{tabs['cms_messageboard'].tabClass['dhf']}}">
						待回复（<label ng-bind="cms_messageboard_dhf.rowsCount"></label>）</a></li>		
					<li><a ng-click="setTab('cms_messageboard', 'yhf');"  class="{{tabs['cms_messageboard'].tabClass['yhf']}}">
						已回复（<label ng-bind="cms_messageboard_yhf.rowsCount"></label>）</a></li>		
				</ul>
			</div>
		</div>
        <div class="date-container">
            <div id="zpgwd">	
                <div ag-include src="'module/cms/message/messageBoardShow.html'" show="true"></div>
   
            </div>
        </div>
        <div ag-Window id="edit" title="留言编辑" width='1000px' height='650px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr>
		                        <td class="text" width="20%">*所属分类</td>
		                        <td class="left" width="30%">
		                            <span>
					                    <ag-Combotree class="zs-input" style="width:350px;height: 28px" 
											para="{ uDictionary:true,
													dictionary:'cms_messageclass',
													pidField:'pid',
		                    						leafField:'leaf'}"
											ng-model="cms_messageboard.editRow.type"
											text-Value="cms_messageboard.editRow.typeName" required/>
		                        	</span>
		                       </td>
		                        <td class="text" width="20%">*留言者</td>
		                        <td class="left" width="30%">
		                        	<!--<input type="text"
			                            ng-model="cms_messageboard.editRow.messagePerson"
			                            class="zs-input" required>-->
			                            <label>测试_超级管理员</label>
		                        </td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">姓名</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageName"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">*性别</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageSex"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">QQ</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageQQ"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">电子邮箱</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageMail"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">电话号码</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messagePhone"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">手机号码</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageCellphone"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言时间</td>
		                        <td class="left" width="30%">
			                        <ag-Datebox id='publishDate'  showcurday='true'
		                        		class="zs-input" style="width:350px;height: 28px"
		                        		ng-model="cms_messageboard.editRow.messageTime"></ag-Datebox>    
			                            
		                        </td>
		                        <td class="text" width="20%">留言IP</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageIP"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言国家</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageCountry"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">留言地区</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.messageArea"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">标题</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="cms_messageboard.editRow.title"></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">留言内容</td>
		                        <td colspan="3" class="left" width="80%">    
									<textarea type="text" rows="3" style="resize:none;height:100px;" 
                                		class="zs-input" ng-model="cms_messageboard.editRow.content"></textarea>	                        
		                        </td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复留言</td>
		                        <td colspan="3" class="left" width="80%">
		                        	<textarea type="text" rows="3" style="resize:none;height:100px;" 
                                		class="zs-input" ng-model="cms_messageboard.editRow.replycontent"></textarea>
		                        </td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复者</td>
		                        <td class="left" width="30%"><input type="text"
		                            class="zs-input" ng-model="cms_messageboard.editRow.replyPersonName"></td>
		                        <td class="text" width="20%">*回复状态</td>
		                        <td class="left" width="30%">
		                        	<span>
					                    <ag-Combotree class="zs-input" style="width:350px;height: 28px" 
											para="{ uDictionary:true,
													dictionary:'cms_message_static',
													pidField:'pid',
		                    						leafField:'leaf'}"
											ng-model="cms_messageboard.editRow.state"
											text-Value="cms_messageboard.editRow.stateName" />
		                        	</span>
		                        </td>    
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复时间</td>
		                        <td class="left" width="30%">
		                        	<ag-Datebox id='publishDate'  showcurday='true'
		                        		class="zs-input" style="width:350px;height: 28px"
		                        		ng-model="cms_messageboard.editRow.replyTime"></ag-Datebox> 
		                        </td>
		                        <td class="text" width="20%">回复IP</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.replyIP"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">回复国家</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.replyCountry"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">回复地区</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="cms_messageboard.editRow.replyArear"
		                            class="zs-input" required></td>
		                    </tr> 
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="4">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && addMessage('cms_messageboard', cms_messageboard.editRow, 'edit')"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
	</div>
</div>